package com.polymorphic多态.练习题.练习01;

public class E {
    public String showEmpAnnual(Employee e) {
        return e.getAnnual();
    }

    public void testWork(Employee e) {
        if (e instanceof Manager) {
          ((Manager) e).manage();
        }
        else ((Worker) e).work();


    }
}
